/**
 * @description attachment module entry
 * @author snake
 */

import { IModuleConf } from '@wangeditor/core'

import witchPlaceholder from './plugin'
import renderCustomAddConf from './render-elem'
import customAddToHtmlConf from './elem-to-html'
import parseHtmlConf from './parse-element-html'

import { placeholderMenuConf, salaryButtonMenuConf } from './menu'

const customAddModule = {
  renderElems: [renderCustomAddConf],
  elemsToHtml: [customAddToHtmlConf],
  parseElemsHtml: [parseHtmlConf],
  menus: [placeholderMenuConf, salaryButtonMenuConf],
  editorPlugin: witchPlaceholder
}

export default customAddModule
